<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page isELIgnored ="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>show all books</title>
</head>
<body align="center">
<div align="right">
用户： <shiro:principal/>
<br>
<a href="logout">退出登入</a>
</div>
<h1>laotou99 图书管理系统</h1>
<div align="center">
<h2>所有可借图书</h2>

<p align="center">
<a href="bookAdd">新增图书</a>
&nbsp;&nbsp;&nbsp;
<a href="borrowbook/addBorrowBook">新增借书单</a>
&nbsp;&nbsp;&nbsp;
<a href="borrowbook/showAllBorrowBook">查看借书清单</a>
&nbsp;&nbsp;&nbsp;
<a href="borrowbook/showAllBorrowBook">还书操作</a>
&nbsp;&nbsp;&nbsp;
<a href="memberManage">会员管理</a>
</p>
<table border="1">
<tr>
<th>序号</th><th>书名简称</th><th>书名全称</th><th>作者</th><th>价格</th><th>类型</th>
<th>书架位置</th><th>数量</th>
<th>备注1</th><th>备注2</th><th>操作</th>
</tr>
<c:forEach items="${books}" var="BookName">
	<tr>
		<td>${BookName.id}</td>
		<td>${BookName.name}</td>
		<td>${BookName.title}</td>
		<td>${BookName.author}</td>
		<td>${BookName.price}</td>
		<td>${BookName.type}</td>
		<td>${BookName.location}</td>
		<td>${BookName.num}</td>
		<td>${BookName.remark1}</td>
		<td>${BookName.remark2}</td>
		<td>&nbsp;
			<a href="updateBook/${BookName.id}">修改</a>
			｜
			<a href="deleteBook/${BookName.id}">删除</a>
		</td>	
	</tr>
</c:forEach>
</table>
</div>
</body>
</html>